package com.fenghuajueli.module_home.room.homevideo

import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Query
import com.fenghuajueli.module_home.room.homevideo.HomeVideo

@Dao
interface HomeVideoDao {
    @Query("select * from homevideo where type = :type")
    fun getHomeVideoByType(type:String):LiveData<List<HomeVideo>>

    @Query("select * from homevideo where name LIKE '%'|| :name || '%'")
    fun getHomeVideoByTypes(name:String):LiveData<List<HomeVideo>>
}